<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生上传作业</title>
</head>
<body>
	<%
		String launcher_id = request.getParameter("launcher_id");
		String task_id = request.getParameter("task_id");
		System.out.println("上传者ID：" + launcher_id);
		System.out.println("任务ID" + task_id);
		String uploader_id = "";
		if (session.getAttribute("loginedsession") != null) {
			uploader_id = session.getAttribute("loginedsession").toString();
		}
	%>
	<link href="<%=request.getContextPath()%>/css/backstage.css"
		rel="stylesheet" type="text/css" />
	<div class="header">
		<font size="6" color="#62A8EA"><br />&emsp;&emsp;&emsp;上传作业</font>
	</div>

	<div class="body">
		<form action="../UploadControl/homeworkupload" method="post" enctype="multipart/form-data"
			name="upload_homework_form">
			<table class="dataintable">
				<tr>
					<td align="center">上传者ID：</td>
					<td><input type="text" name="student_id"
						value=<%=uploader_id%>></td>
					<td align="center">任务ID：</td>
					<td><input type="text" name="task_id" value=<%=task_id%>></td>
					<td align="center">教师ID：</td>
					<td colspan="2"><input type="text" name="teacher_id"
						value=<%=launcher_id%>></td>
				</tr>
				<tr>
					<td align="center">上传时间：</td>
					<td><input type="text" name="year"></td>
					<td>年</td>
					<td><input type="text" name="month"></td>
					<td>月</td>
					<td><input type="text" name="day"></td>
					<td>日</td>
				</tr>
				
				<tr>
					<td align="center">请选择上传文件：</td>
					<td colspan="6"><input type="file" name="homeworkfile"></td>
				</tr>
				<tr>
				<td align="center">请输入文件名称：</td>
				<td colspan="6"><input type="text" name="homework_name"><!-- 上传文件时一定要在后面加上文件类型,eg:c语言程序设计.zip -->
				<input type="hidden" name="uploadType" value="homework"/></td>
				</tr>
				<tr>
					<td align="center" colspan="7"><input type="submit" value="提交"></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>